<template>
    <lightning-card title="NavToListView" icon-name="custom:custom96">
        <lightning-button
            label="Go to Recent Contacts list"
            class="slds-var-m-around_medium"
            onclick={navigateToList}
        ></lightning-button>

        <c-view-source source="lwc/navToListView" slot="footer">
            Navigate to a list view. In this example, Recently Viewed Contacts.
        </c-view-source>
    </lightning-card>
</template>
